package com.ponhu.ea2.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author luyu
 * @create 2021-10-14 15:58
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "操作人信息-数据传输模型 ")
public class OperatorDto implements Serializable {

    @NotNull(message = "操作人ID不可为空")
    @ApiModelProperty(value = "操作人ID")
    private Long operatorId;

    @NotEmpty(message = "操作人姓名不可为空")
    @ApiModelProperty(value = "操作人姓名")
    private String operatorName;

}
